home *** CD-ROM | disk | FTP | other *** search
- Path: inforamp.net!usenet
- From: rmorin@inforamp.net (Randy Charles Morin)
- Newsgroups: comp.lang.c++
- Subject: Re: Dynamicly changing array size??
- Date: Sun, 21 Apr 1996 17:59:51 GMT
- Organization: InfoRamp Inc., Toronto, Ontario (416) 363-9100
- Message-ID: <4ldiie$pas@sam.inforamp.net>
- References: <4l9mht$9h5@cello.cs.uq.edu.au>
- NNTP-Posting-Host: ts23-13.tor.istar.ca
- X-Newsreader: Forte Free Agent 1.0.82
-
- s324570@cs.uq.edu.au (andrew janke) wrote:
-
- >A question to you gurus out there...
- >We are trying to implement an array of pointers that changes in size during run time.
- >ie its array size is not only changed at runtime but is also changed frequently during runtime.
- >We are using c++ and am interested as whether this sort of thing can be done.
- >Its either that or we will have to sue some sort of a blocked array structure.
-
- You can do this using the STL and most early implementations of
- template containers. Using the STL their's a few classes, one named
- vector that does just that. Using MFC the CArray class can be used.
- In OWL, you can use TVectorAsArray.
-
-
- Agrivar
-
- aka Randy Charles Morin,
- MiddleWorld SoftWare,
- Satisfying Your Bit and Bytes,
- Canada 1-800-363-3780
- Other 1-905-279-2087
- eMail rmorin@inforamp.net
-
-